package com.wps.wdztv6.domain.edit;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Data
@Builder
public class FileVersionsCallback {
    
    @JSONField(name="histories")
    private List<File> files;

	@Getter
	@Setter
	@Builder
	public static class File {
	    
	    @JSONField(name="id")
	    private String id;
	    
	    @JSONField(name="name")
	    private String name;
	    
	    @JSONField(name="version")
	    private int version;
	    
	    @JSONField(name="size")
	    private long size;
	    
	    @JSONField(name="download_url")
	    private String downloadUrl;
	    
	    @JSONField(name="create_time")
	    private long createTime;
	    
	    @JSONField(name="modify_time")
	    private long modifyTime;
	    
	    @JSONField(name="creator")
	    private User creator;
	    
	    @JSONField(name="modifier")
	    private User modifier;

		@Getter
		@Setter
		@Builder
		public static class User { 
			
			@JSONField(name="id")
		    private String id;
			
			@JSONField(name="name")
		    private String name;
			
			@JSONField(name="avatar_url")
		    private String avatarUrl;

		}

	}
	
}
